package com.lhoverc.service.announcement;

import com.lhoverc.pojo.PageBean;
import com.lhoverc.pojo.Result;
import com.lhoverc.pojo.VO.AnnouncementVO;
import com.lhoverc.pojo.dto.AnnouncementDto;
import com.lhoverc.pojo.entity.AnnouncementEntity;

import java.util.List;

/**
 * @Author: LiCheng
 * @CreateTime: 2025-04-20
 * @Description:
 * @Version: 1.0
 */
public interface AnnouncementService {
    /**
     * 查询最近公告
     * @return
     */
    PageBean getRecentAnnouncement();

    /**
     * 公告分页查询
     * @param page
     * @param pageSize
     * @param keyword
     * @return
     */
    PageBean page(Integer page, Integer pageSize, String keyword);

    /**
     * 获取所有公告
     * @return
     */
    List<AnnouncementVO> getAllAnnouncement();

    /**
     * 添加公告
     * @param announcementDto
     */
    void addAnnouncement(AnnouncementDto announcementDto);

    /**
     * 删除公告
     * @param id
     */
    void deleteAnnouncement(int id);

    /**
     * 修改公告
     * @param announcementEntity
     */
    void updateAnnouncement(AnnouncementEntity announcementEntity);
}
